package Command_Pattern.Room;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        User user=new User();
        Command command,command1;
        System.out.println("****该控制连接风扇");
        command=new FenCommand();
        user.setCommand(command);
        user.click();
        System.out.println("****该控制连接灯光");
        command1=new LightCommand();
        user.setCommand(command1);
        user.click();
    }
}
